imwayland: Fix clearing of preedit text
authorDorota Czaplejewicz <dorota.czaplejewicz@puri.sm>
Mon, 10 Sep 2018 08:32:23 +0000 (08:32 +0000)
committerCarlos Garnacho <carlosg@gnome.org>
Tue, 18 Dec 2018 19:27:12 +0000 (20:27 +0100)
commitfcf28ded425181d7add5e3a35b0329f93bf660e1
treea0155db66f23521e0d49918c1efa198e85fa1afd
parent1e69d248cbe424dfd0c6a37b87e53ac5a0234b17
imwayland: Fix clearing of preedit text

Fixes terminal emulator misbehaviour as outlined in https://gitlab.gnome.org/GNOME/gtk/issues/1316, which was introduced in 49b17e6c. The original commit cleared preedit text by setting it to an empty string, which still counted as existing preedit. The fix sets preedit string to null, which is correctly understood as not present.
gtk/gtkimcontextwayland.c